import { createApp } from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import './styles/index.scss'
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
import SvgIcon from './icons'
import * as echarts from 'echarts'
import * as ELIcons from '@element-plus/icons-vue'
// import "./mock/mockServe.js";

const app = createApp(App)
SvgIcon(app)

for (const iconName in ELIcons) {
  if (Reflect.has(ELIcons, iconName)) {
    const item = ELIcons[iconName]
    app.component(iconName, item)
  }
}

app.use(store).use(ElementPlus).use(router).mount('#app')
app.config.globalProperties.$echarts = echarts
